#!/bin/bash

#Executable File Path And FileName
ExecFile='/usr/local/bin/ftpc'
MakeFile='client.c'

#Delete Old Binary File
if [ -e $ExecFile ];then
	rm -rf $ExecFile
fi

gcc -D_REENTRANT -o $ExecFile $MakeFile -lpthread

if [ ! -x $ExecFile ];then
	chmod u+x $ExecFile
fi

$ExecFile 127.0.0.1:1956